<script type="text/javascript">
	$(document).ready(function(){
		s_i_init();
	});	
</script>
<div class="header">上传图片附件</div>
<div class="ui success message hidden" id="backmessage"></div>
<div class="image_updater_callback"></div>
<div class="image content">
	<div class="image">
		<img class="ui small image s_image_preview">
	</div>
	<div class="description">
		<div class="description s_image_desc">请选择上传一个图片</div>
		<br />
		<div class="ui compact menu">
			<a class="item s_cropper_edited" onClick="edit($(this))"><i class="save icon"></i> 裁剪 </a> <a class="item s_cropper_edited"
				onClick="if($(this).hasClass('disabled'))return;$('#updatefile').click();"
			><i class="cloud upload icon"></i> 上传 </a><a class="item s_cropper_editing disabled" onClick="if($(this).hasClass('disabled'))return;complete();"><i class="undo alternate icon"></i>
				重置 </a>
		</div>
	</div>
</div>
<div class="actions">
	<div class="ui button cancel" onClick="$('.modal').modal('hide');update=false;">取消</div>
	<div class="ui button ok disabled" onClick="if($(this).hasClass('disabled'))return;update();">上传</div>
</div>
<form method="post" style="display: none;" class="fileajaxform" url="index.php?mod=home&childmod=home&ajax=true&op=general_image_update" enctype="multipart/form-data">
	<input type="hidden" name="requestType" value="form_post">
	<div class="ui icon header">
		<input style="display: none" accept="image/*" type="file" name="file" id="updatefile" onchange="dealImage()">
	</div>
</form>
